package main

import (
	"gitee.com/baizhige/go-server-tempalte/common/config"
	"gitee.com/baizhige/go-server-tempalte/common/mongo"
	"gitee.com/baizhige/go-server-tempalte/common/router"
)

func main() {
	config.Init("project1")                           //初始化配置文件
	mongo.Init(config.Project.Mongo)                  // 初始化Mongo 连接、索引、插件
	router.ListenWeb(config.Project.App.Port, Router) //初始化http请求监听，中间件
}
